<template>
  <section class="goelia-world-section-skeleton">
    <div class="section-header-skeleton">
      <div class="skeleton-line title-line"></div>
      <div class="skeleton-line subtitle-line"></div>
    </div>

    <div class="gallery-container-skeleton">
      <div class="gallery-skeleton">
        <div v-for="i in 10" :key="i" class="gallery-item-skeleton">
          <div class="skeleton-block image-block"></div>
        </div>
      </div>
    </div>
  </section>
</template>

<script lang="ts" setup>
// No script logic needed for a pure skeleton component
</script>

<style scoped lang="scss">
.skeleton-block,
.skeleton-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite ease-in-out;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.goelia-world-section-skeleton {
  padding: 80px 0;
  background-color: #fff;
  padding-bottom: 0px;
}

.section-header-skeleton {
  text-align: center;
  margin-bottom: 40px; // Matches .section-header margin-bottom + .title margin-bottom
}

.title-line {
  width: 400px; // Approximate width of "GOELIA AROUND THE WORLD"
  height: 28px; // Matches .title font-size
  margin: 0 auto 10px auto; // Matches .title margin-bottom
}

.subtitle-line {
  width: 300px; // Approximate width of "#goelialady | Follow us @goelia_official"
  height: 16px; // Matches .subtitle font-size
  margin: 0 auto;
}

.gallery-container-skeleton {
  margin: 0 auto;
  padding: 0 15px;
}

.gallery-skeleton {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.gallery-item-skeleton {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.image-block {
  width: 100%;
  height: 100%;
}

/* Responsive adjustments for skeleton */
@media (max-width: 1200px) {
  .gallery-skeleton {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .goelia-world-section-skeleton {
    padding: 60px 0;
  }
  .gallery-skeleton {
    grid-template-columns: repeat(3, 1fr);
  }
  .title-line {
    width: 350px;
    height: 24px;
  }
  .subtitle-line {
    width: 250px;
    height: 14px;
  }
}

@media (max-width: 768px) {
  .goelia-world-section-skeleton {
    padding: 40px 0;
  }
  .gallery-skeleton {
    grid-template-columns: repeat(2, 1fr);
  }
  .title-line {
    width: 300px;
    height: 24px;
  }
  .subtitle-line {
    width: 220px;
    height: 14px;
  }
}

@media (max-width: 576px) {
  .goelia-world-section-skeleton {
    padding: 30px 0;
  }
  .section-header-skeleton {
    margin-bottom: 30px;
  }
  .gallery-skeleton {
    gap: 10px; // Reduced gap for smaller screens
  }
  .title-line {
    width: 250px;
    height: 20px;
  }
  .subtitle-line {
    width: 200px;
    height: 12px;
  }
  .gallery-container-skeleton {
    padding: 0 10px;
  }
}
</style> 